# Contributor: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
maintainer="team/kde <bribbers@disroot.org>"
pkgname=khealthcertificate
pkgver=24.08.2
pkgrel=0
pkgdesc="Handling of digital vaccination, test and recovery certificates"
url="https://invent.kde.org/pim/khealthcertificate"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="LGPL-2.0-or-later"
depends_dev="
	karchive-dev
	kcodecs-dev
	ki18n-dev
	openssl-dev>3
	qt6-qtbase-dev
	qt6-qtdeclarative-dev
	zlib-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	samurai
	"
subpackages="$pkgname-dev"
_repo_url="https://invent.kde.org/pim/khealthcertificate.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/khealthcertificate-$pkgver.tar.xz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
5e8a6b21542a6e9a87707f511c7582a104fa40b8fd80b9fae6fb43e34cc5d2b49f0b73193ec1ab2a6b7423f0e98797cfea22759915986edb85b4e6c63d4c117c  khealthcertificate-24.08.2.tar.xz
"
